package org.wukongcrm.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.wukongcrm.domain.entity.Customer;

import java.util.List;

@Mapper
public interface CustomerMapper extends BaseMapper<Customer> {

    List<Customer> selectCustomer (Page<Customer> page, @Param("conditions") String conditions);

    int updateOwnerUser (@Param("ownerUserId") Integer ownerUserId, @Param("customerNo") Integer customerNo);

    int updateDealStatus (@Param("dealStatus") Integer dealStatus, @Param("customerNo") Integer customerNo);
}